package ddd;

import ddd.constant.PlayerEnum;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/6/1 17:11
 */
public class PlayerFactory {

    public  static Player  createPlayer(PlayerEnum playerEnum,String name){
        Player player = new Player(name,playerEnum);
        return player;
    }

}
